package upicgame.gamelibrary.dao;

import java.util.List;

import upicgame.entity.Library;
import upicgame.entity.User;

public interface LibraryDao {
	List<Library> findAllLibrary();
	List<Library> pageFindLibByUser(Integer uid,Integer currentPage,Integer maxSize);
	Library findlibByUserAndGame(Integer uid,Integer gid);
	List<Library> findAllLibraryByPage(Integer currentPage, Integer maxSize);
	List<Object[]> findLibraryByUserId(Integer uid);
	List<User> findAllUser();
	Long countLibGame();
	Long countLibGame(Integer uid);
	void addGameInLibrary(Library lib);
	Integer delGameInLibrary(Integer uid,Integer gid);
}
